#ifndef __WASTE_SORTING_H__
#define __WASTE_SORTING_H__
#include <vector>
#include <string>
/*
   0-可回收
   1-有害
   2-厨余(湿)
   3-其他(干)
*/

namespace waste_sorting{

   class WasteSorting{
      public:
         WasteSorting();
         ~WasteSorting();
         int getGarbageCategoryByNames(std::vector<std::string> *objectNames);
         int getGarbageNamesByImage(const char *fileName, std::vector<std::string> *objectNames);
         //提供垃圾分类查询的接口：https://www.tianapi.com/apiview/97
         std::string url_ = "http://api.tianapi.com/txapi/lajifenlei/index";
      private:
		//Some secret things you should apply at BaiduAI
         std::string app_id_;
         std::string api_key_;
         std::string secret_key_;
		   //Secret key at Tianapi you shoulw apply at http://api.tianapi.com
		   std::string tian_key_;
         // POST请求携带的数据，key是我在平台上的密钥，wrod是查询的物体名，也就是需要拼接上的传入的参数objectNames[i]
         std::string postData0_;
   };
}

#endif
